package com.mudongheng.app.service.impl;

import com.mudongheng.app.dao.SysUserDao;
import com.mudongheng.app.model.SysUser;
import com.mudongheng.app.service.SysUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 幕冬
 * @since 2022年03月07日
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    private final SysUserDao sysUserDao;

    public SysUserServiceImpl(SysUserDao sysUserDao) {
        this.sysUserDao = sysUserDao;
    }

    @Override
    public SysUser get() {
        return sysUserDao.get();
    }

    @Override
    public List<SysUser> list() {
        return sysUserDao.list();
    }

    @Override
    public boolean insert(SysUser sysUser) {
        return sysUserDao.insert(sysUser);
    }

    @Override
    public boolean update(SysUser sysUser) {
        return sysUserDao.update(sysUser);
    }

    @Override
    public boolean delete(SysUser sysUser) {
        return sysUserDao.delete(sysUser);
    }
}
